/* 
 * CityModel.
 */
City.prototype = new Sprite();
City.prototype.constructor = City;
City.superclass = Sprite.prototype;


function City(city) {

        if (city != undefined) {
            this.init(city);
        }

	/*
	 ---------- CONSTANTS ------------------------------------------
	*/    

	/*
	 ---------- MEMBER VARIABLES -----------------------------------
	*/    
		
            /** position on the map. */
            this.position;

            /** amount of money the user has. */
            this.money;

            /** the width of the city. */
            this.width;

            /** the height of the city. */
            this.height;

            /** the population of the city. */
            this.population;

	/*
	 ---------- PUBLIC METHODE -------------------------------------
	*/     

            this.initBuildings = function() {
                this.initChurches();
            }

            this.initChurches = function(churches) {
                
            }

        this.test = function () {
            alert("child");
        }
        
	/*
	 ---------- PRIVATE METHODE ------------------------------------
	*/       
		
}

City.prototype.init = function(city) {
    // Call superclass method
    City.superclass.init.call(this, city);

    this.position = city.position;
    this.money = city.money;
    this.width = city.width;
    this.height = city.height;
    this.population = city.population;
};